package app.web.visual.disk;

import cn.lily.com.exception.YaconException;
import cn.lily.web.page.BusinessPage;
import cn.lily.web.widget.page.TPanel;
import cn.lily.web.widget.standard.TDrop;
/**
 * 磁盘信息Edit页面
 * @author JiaJ
 *
 */
public class DiskEdit extends BusinessPage { 

	 public void page_onLoad() throws YaconException {

		 TPanel diskPanel = Panel("diskPanel");
		 diskPanel.creatToolbar().setBarText("本地磁盘信息");

		 Form("diskForm").setDictTable("LEO_DISK_INFO");
		 
		 Form("diskForm").createFormCell(Input("DISK_ID"));
		 Form("diskForm").createFormRow();
		 
		 Form("diskForm").createFormCell(Input("DISK_NAM"));
		 Form("diskForm").createFormRow();
		 
		 Form("diskForm").createFormCell(Drop("DISK_COLOR"));
		 Form("diskForm").createFormRow();
		 	 
		 Form("diskForm").createFormCell(Drop("DISK_TYP"));
		 Form("diskForm").createFormRow();
		 
		 Form("diskForm").createFormCell(Drop("DISK_STATUS"));
		 Form("diskForm").createFormRow();

		 Form("diskForm").createFormCell(Input("DISK_SIZE"));
		 Form("diskForm").createFormRow();

		 diskPanel.createPanelCell(Form("diskForm"));
		 
		 diskPanel.creatStatusBar().addElement(Button("save"));
		 diskPanel.getStatusBar().addElement(Button("exit"));
		 
		 getPage().addElement(diskPanel);

	 }


}
